﻿using Simple.Tools;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Test.Map
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public class ContentInformationAddDto
	{
		public ContentInformationAddDto(bool init=false) 
		{
			if (init)
			{
				Title = "标题";
				PublishPlatformPC = true;
				PublishPlatformMinPro = true;
				ShortTitle = "";
				ReadType = ContentTypeRead.Inner;
				ReadType1 = ContentTypeRead.Inner;
				ReadType2 = ContentTypeRead2.Inner;
				FileName = "xx.txt";
				Id = "0";
			}
		}
        public string Id { get; set; }
        public ContentTypeRead? ReadType { get; set; }
		public ContentTypeRead ReadType1 { get; set; }
		[MapTo(typeof(ContentTypeRead))]
		public ContentTypeRead2 ReadType2 { get; set; }

		/// <summary>
		///标题
		/// </summary>
		public string Title { get; set; }

		/// <summary>
		/// 栏目ID
		/// </summary>
		public long SubjectId { get; set; }

		/// <summary>
		/// 栏目名称
		/// </summary>
		public long SubjectName { get; set; }

		/// <summary>
		/// 文章来源
		/// </summary>
		public string Source { get; set; }

		/// <summary>
		/// 文章来源跳转链接
		/// </summary>
		public string SourceLinks { get; set; }

		/// <summary>
		///副标题
		/// </summary>
		public string ShortTitle { get; set; }

		/// <summary>
		///摘要
		/// </summary>
		public string Remark { get; set; }

		/// <summary>
		///发布时间
		/// </summary>
		public DateTime? ReleaseTime { get; set; }

		/// <summary>
		/// 标签
		/// </summary>
		public List<long> TagArr { get; set; }

		/// <summary>
		/// 关键词
		/// </summary>
		public List<string> KeyWordsArr { get; set; }

		/// <summary>
		/// 栏目类型
		/// </summary>
		public string SubjectType { get; set; }

		/// <summary>
		/// 大文本
		/// </summary>
		public string ContentTxt { get; set; }

		/// <summary>
		/// 展示位置
		/// </summary>
		public int DisplayPoint { get; set; }

		/// <summary>
		///发布平台PC
		/// </summary>
		public bool PublishPlatformPC { get; set; }

		/// <summary>
		///发布平台Wap
		/// </summary>
		public bool PublishPlatformWap { get; set; }

		/// <summary>
		///发布平台小程序
		/// </summary>
		public bool PublishPlatformMinPro { get; set; }

		/// <summary>
		/// 封面
		/// </summary>
		public string CoverPicture { get; set; }

		/// <summary>
		///上传附件
		/// </summary>
		public string Enclosure { get; set; }

		/// <summary>
		///上传附件
		/// </summary>
		[ColName("EnclosureName")]
		public string FileName { get; set; }

		/// <summary>
		/// 底部营销图
		/// </summary>
		public string MarketingPicture { get; set; }

		/// <summary>
		/// 底部营销图跳转链接
		/// </summary>
		public string MarketingUrl { get; set; }

		/// <summary>
		/// 查阅方式
		/// </summary>
		public int ConsultType { get; set; }

		/// <summary>
		/// 集群类型
		/// </summary>
		public string[] ClusterIds { get; set; }

		/// <summary>
		/// 是否上架
		/// </summary>
		public bool IsOnShelf { get; set; }
		/// <summary>
		/// 
		/// </summary>
	}
}
